package com.lxu.entity.monster;

import com.lxu.entity.player.Player;
import com.lxu.entity.weapon.Weapon;

import java.util.ArrayList;
import java.util.List;

/**
 * 怪物
 */
public abstract class Monster {
    /**
     * 血量
     */
    public int blood;

    /**
     * 是否存活，0：死亡；1：存活
     */
    public boolean lived;

    /**
     * 攻击无效果的玩家类型集合
     */
    public List<Player> immunes = new ArrayList<Player>();

    public Monster(int blood) {
        this.blood = blood;
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }

    public boolean isLived() {
        return lived;
    }

    public void setLived(boolean lived) {
        this.lived = lived;
    }

    public List<Player> getImmunes() {
        return immunes;
    }

    public void setImmunes(List<Player> immunes) {
        this.immunes = immunes;
    }

    public abstract void harmCal(Weapon weapon, Player player);
}
